package me.ezitku.base.extensions.permission

import android.Manifest
import android.Manifest.permission
import android.Manifest.permission.WRITE_EXTERNAL_STORAGE
import android.Manifest.permission.READ_EXTERNAL_STORAGE
import android.Manifest.permission.RECEIVE_MMS
import android.Manifest.permission.RECEIVE_WAP_PUSH
import android.Manifest.permission.READ_SMS
import android.Manifest.permission.RECEIVE_SMS
import android.Manifest.permission.SEND_SMS
import android.Manifest.permission.BODY_SENSORS
import android.Manifest.permission.PROCESS_OUTGOING_CALLS
import android.Manifest.permission.USE_SIP
import android.Manifest.permission.ADD_VOICEMAIL
import android.Manifest.permission.WRITE_CALL_LOG
import android.Manifest.permission.READ_CALL_LOG
import android.Manifest.permission.CALL_PHONE
import android.Manifest.permission.READ_PHONE_STATE
import android.Manifest.permission.RECORD_AUDIO
import android.Manifest.permission.ACCESS_COARSE_LOCATION
import android.Manifest.permission.ACCESS_FINE_LOCATION
import android.Manifest.permission.GET_ACCOUNTS
import android.Manifest.permission.WRITE_CONTACTS
import android.Manifest.permission.READ_CONTACTS
import android.Manifest.permission.WRITE_CALENDAR
import android.Manifest.permission.READ_CALENDAR



/**
 * Created by yurqi on 2017/5/25.
 */


interface Permissions {
    companion object {
        val CALENDAR = arrayOf<String>(Manifest.permission.READ_CALENDAR, Manifest.permission.WRITE_CALENDAR)
        val CAMERA = arrayOf<String>(Manifest.permission.CAMERA)
        val RECOURD_AUDIO = arrayOf<String>(Manifest.permission.RECORD_AUDIO)
        val CONTACTS = arrayOf<String>(Manifest.permission.READ_CONTACTS, Manifest.permission.WRITE_CONTACTS, Manifest.permission.GET_ACCOUNTS)
        val LOCATION = arrayOf<String>(Manifest.permission.ACCESS_FINE_LOCATION,
                Manifest.permission.ACCESS_COARSE_LOCATION)
        val MICROPHONE = arrayOf<String>(Manifest.permission.RECORD_AUDIO)
        val PHONE = arrayOf<String>(Manifest.permission.READ_PHONE_STATE, Manifest.permission.CALL_PHONE, Manifest.permission.READ_CALL_LOG, Manifest.permission.WRITE_CALL_LOG, Manifest.permission.ADD_VOICEMAIL, Manifest.permission.USE_SIP, Manifest.permission.PROCESS_OUTGOING_CALLS)
        val SENSORS = arrayOf<String>(Manifest.permission.BODY_SENSORS)
        val SMS = arrayOf<String>(Manifest.permission.SEND_SMS, Manifest.permission.RECEIVE_SMS, Manifest.permission.READ_SMS, Manifest.permission.RECEIVE_WAP_PUSH, Manifest.permission.RECEIVE_MMS)
        val STORAGE = arrayOf<String>(Manifest.permission.READ_EXTERNAL_STORAGE, Manifest.permission.WRITE_EXTERNAL_STORAGE)

        val CALENDAR_DESC = "日历"
        val CAMERA_DESC = "相机"
        val RECOURD_AUDIO_DESC = "录音"
        val CONTACTS_DESC = "通讯录"
        val LOCATION_DESC = "位置信息"
        val MICROPHONE_DESC = "麦克风"
        val PHONE_DESC = "电话"
        val SENSORS_DESC = "身体传感器"
        val SMS_DESC = "短信"
        val STORAGE_DESC = "存储空间"
    }
}